//数据层
var mongoose = require("mongoose");
var db = require('./db');
var adminModel = db.model("administrator",new mongoose.Schema({
    username:{
        type: String,
        required:true,
    },
    password:{
        type:String,
        required:true
    }
}),"administrator");

module.exports = adminModel;